function transmitParam(wordInfo){
	console.log("wordInfo",wordInfo);
	
	var word_code = wordInfo.word_code;
	var parent_code = wordInfo.parent_code;
	var word_mean = wordInfo.word_mean;
	var word_value = wordInfo.word_value;
	var parent_mean = wordInfo.parent_mean;
	
	$('#parent_code').val(parent_mean);
	$('#parent_code').attr('data-value',parent_code);
	$('#word_code').val(word_code);
	$('#old_code').val(word_code);
	$('#word_mean').val(word_mean);
	$('#word_value').val(word_value);
}

layui.use('layer',function(){
	var layer = layui.layer;
	
	$('#updateDict').click(function(){
		var parent_code = $('#parent_code').attr('data-value');
		var word_code = $('#word_code').val();
		var old_code = $('#old_code').val();
		var word_mean = $('#word_mean').val();
		var word_value = $('#word_value').val();
		layer.load(2);
		
		$.ajax({
			type : 'post'
			,dataType : 'json'
			,url : access_url+'/system/systemmanage/updatedict'
			,contentType : 'application/json;charset=UTF-8'
			,data : JSON.stringify({
				parent_code : parent_code
				,word_code : word_code
				,word_mean : word_mean
				,word_value : word_value
				,old_code : old_code
			})
			,success : function(data){
				layer.closeAll('loading');
				if(data.code != 200){
					layer.msg(data.msg, {icon: 5});
					return;
				}
				parent.layer.alert(data.msg,{icon:6});
				if(isNull(parent_code)){
					parent.queryDictType();
				}
				parent.loadTable();
				parent.layer.closeAll('iframe');
			}
		})
	})
})
